<?php

/**
 * Definition set and get methods to data obtained/transmitted in the table
 * 
 * This is a class generated with Zend_CodeGenerator.
 * 
 * @category Application
 * @package Application_User
 * @subpackage Model
 * @version $Id$
 * @license New BSD
 */
class User_Model_Users extends Core_Model_Abstract
{

    protected $_user_id;
    protected $_password;
    protected $_login;
    protected $_create_date;
    protected $_role_id;
    protected $_hash;
    protected $_email;
    protected $_disable;

    public function setUser_id($_user_id)
    {
        $this->_user_id = (int)$user_id;
    }

    public function getUser_id()
    {
        return $this->_user_id;
    }

    public function getPassword()
    {
        return sha1(sha1($this->_password));
    }

    public function setPassword($_password)
    {
        $this->_password = $_password;
    }

    public function getLogin()
    {
        return $this->_login;
    }

    public function setLogin($_login)
    {
        $this->_login = $_login;
    }

    public function getCreate_date()
    {
        if (empty($this->_create_date)) {
            $this->_create_date = date('Y-m-d H:i:s');
        }
        return $this->_create_date;
    }

    public function setCreate_date($_create_date)
    {
        $this->_create_date = $_create_date;
    }

    public function getRole_id()
    {
        if (empty($this->_role_id)) {
            $this->_role_id = 2;
        }
        return $this->_role_id;
    }

    public function setRole_id($_role_id)
    {
        $this->_role_id = $_role_id;
    }

    public function getHash()
    {
        return $this->_hash;
    }

    public function setHash($_hash)
    {
        $this->_hash = $_hash;
    }

    public function getEmail()
    {
        return $this->_email;
    }

    public function setEmail($_email)
    {
        $this->_email = $_email;
    }

    public function getDisable()
    {
        return $this->_disable;
    }

    public function setDisable($_disable)
    {
        $this->_disable = $_disable;
    }
}

